﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Windows.Forms;

namespace ThreadsTest
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
            //{
            //    //简单的async 方法的调用
            //    AsyncAwaitTest asyncAwaitTest = new AsyncAwaitTest();
            //    asyncAwaitTest.DoSomethingAsync();
            //    //Console.WriteLine("=======立刻输出结果=========");
            //}
            //{
            //    //Console.WriteLine(Thread.CurrentThread.ManagedThreadId);
            //    //AsyncAwaitTest asyncAwaitTest = new AsyncAwaitTest();
            //    //asyncAwaitTest.DoSomethingAsync1();
            //    //Console.WriteLine(Thread.CurrentThread.ManagedThreadId);
            //    //Console.WriteLine("=======立刻输出结果=========");
            //}
            //Console.ReadKey();
        }
    }
}
